<template>
  <el-container style="height: 100%">
    <el-header height="80px">
      <Header />
    </el-header>
    <el-container>
      <Aside />
      <el-main>
        <keep-alive
          :include="KEEP_ALIVE_ROUTER"
          :max="30"
        >
          <router-view></router-view>
        </keep-alive>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import { mapState } from "vuex";
import Aside from "@/components/aside";
import Header from "@/components/header";
export default {
  name: "Layout",
  components: {
    Aside,
    Header
  },
  computed: {
    ...mapState(["KEEP_ALIVE_ROUTER"])
  }
};
</script>
